package org.dromara.business.domain.vo;

import org.dromara.business.domain.ContentTag;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.mybatis.core.vo.BaseVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 统一内容标签定义视图对象 t_content_tag
 *
 * @author Hao Tong Xue
 * @date 2025-04-21
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ContentTag.class)
public class ContentTagVo extends BaseVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 标签ID
     */
    @ExcelProperty(value = "标签ID")
    private Long id;

    /**
     * 标签名称
     */
    @ExcelProperty(value = "标签名称")
    private String tagName;

    /**
     * 关联的内容ID（视频或音频ID或文章）
     */
    @ExcelProperty(value = "关联的内容ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "视=频或音频ID或文章")
    private Long contentId;

    /**
     * 内容类型（1-视频，2-音频，3-文章）
     */
    @ExcelProperty(value = "内容类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "content_type")
    private Integer contentType;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Integer orderBy;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
